package com.cipe.cmrs.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cipe.cmrs.model.Imp;
import com.cipe.cmrs.service.ImpService;

/**
 * 
 * @author krishna (kanhu.aum@gmail.com) 
 * The controller class for IMP
 *
 */
@Controller
public class ImpController extends BaseController{
	private static final long serialVersionUID = -2482539586632027078L;
	@Autowired
	ImpService impService;
	
	
	@RequestMapping("/secure/findResultImpWithProcedure.do")
	public String findResultProjectReportWithProcedure(@ModelAttribute("imp") Imp imp, Model model) {
	model.addAttribute("impList", impService.findallProjectReport(imp.getPrc()));
	model.addAttribute("message", imp.getMessage());
	return "findImp";
	}

}
